package com.gem.eolane.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.Date;

/**
 * @author cz
 * @date 2019/4/8
 * @Description: 新闻实体类
 */
@Data
@TableName("news")
public class News extends Model<News> {
    @TableId(type = IdType.AUTO)
    private Integer id;        //主键(自动递增)
    private String title;       //标题
    private String author;      //作者
    private Integer category;   //类别(0公司新闻，1行业新闻)
    private Integer language;   //语言(0中文，1英文)
    private Date releaseTime;   //发布时间
    private String imageAddress; //图片地址
    private String contentAddress;  //内容

    private Integer delIdent; //标识符(0发布，1未发布)
}
